package com.cdp.zwy.background_manager_back.mapper;

import com.cdp.zwy.background_manager_back.domain.Admin;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Administrator
 * @version 1.0
 * @description: TODO
 * @date 2025/3/27 11:44
 */

public interface AdminMapper {
    List<Admin> selectAll(Admin admin);
    @Select("select * from admin where id=#{id}")
    Admin selectById(Integer id);
    Admin selectByName(String name);
    List<Admin> selectByKey(String key);

    int insert(Admin admin);

    int update(Admin admin);

    int delete(Integer id);
}
